package com.hr.system.bo;

import com.hr.common.core.domain.BaseEntity;

import java.util.Arrays;

/**
 * 包名称： com.hr.system.BO
 * 类名称： PersonnelClockBO
 * 类描述： 个人打卡业务类
 * 创建人： @author tanglei
 * 创建时间： 2021/1/26/10:58
 */

public class PersonnelClockBO extends BaseEntity {

    /**
     * 个人id
     */
    private int clockId;

    /**
     * 个人最近七天工作日首次打卡
     */
    private String[] firstClockTime;

    /**
     * 个人最近七天工作日最后一次打卡
     */
    private String[] lastClockTime;

    /**
     * 异常打卡编号id数组
     */
    private int[] abnormalClockIds;

    public PersonnelClockBO(int clockId) {
        this.clockId = clockId;
    }

    public PersonnelClockBO(int clockId, String[] firstClockTime, String[] lastClockTime, int[] abnormalClockIds) {
        this.clockId = clockId;
        this.firstClockTime = firstClockTime;
        this.lastClockTime = lastClockTime;
        this.abnormalClockIds = abnormalClockIds;
    }

    public int getClockId() {
        return clockId;
    }

    public void setClockId(int clockId) {
        this.clockId = clockId;
    }

    public String[] getFirstClockTime() {
        return firstClockTime;
    }

    public void setFirstClockTime(String[] firstClockTime) {
        this.firstClockTime = firstClockTime;
    }

    public String[] getLastClockTime() {
        return lastClockTime;
    }

    public void setLastClockTime(String[] lastClockTime) {
        this.lastClockTime = lastClockTime;
    }

    public int[] getNormal() {
        return abnormalClockIds;
    }

    public void setNormal(int[] abnormalClockIds) {
        abnormalClockIds = abnormalClockIds;
    }

    @Override
    public String toString() {
        return "PersonnelClockBO{" +
                "clockId=" + clockId +
                ", firstClockTime=" + Arrays.toString(firstClockTime) +
                ", lastClockTime=" + Arrays.toString(lastClockTime) +
                ", abnormalClockIds=" + abnormalClockIds +
                '}';
    }
}
